package com.gxa.autoparts.portal.service;

import com.gxa.autoparts.core.pojo.Address;
import com.gxa.autoparts.core.service.BaseService;

import java.util.List;

/**
 * @author R
 * @data 2022-01-06 15:26
 */
public interface AddressService extends BaseService<Address> {

    /**
     * 查找数据库里是否有默认的地址
     */
    Address selectByDefault(Long uid);

    List<Address> selectByUid(Long uid);

    Address selectById(Long userId,Long id);
}
